3.160 \(\int \frac{(d x)^{-1+n}}{\log ^2(c x^n)} \, dx\)

Optimal. Leaf size=49 \[ \frac{x^{1-n} (d x)^{n-1} \text{li}\left (c x^n\right )}{c n}-\frac{(d x)^n}{d n \log \left (c x^n\right )} \]

[Out]

-((d*x)^n/(d*n*Log[c*x^n])) + (x^(1 - n)*(d*x)^(-1 + n)*LogIntegral[c*x^n])/(c*n)

________________________________________________________________________________________

Rubi [A]  time = 0.0527794, antiderivative size = 49, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {2306, 2308, 2307, 2298} \[ \frac{x^{1-n} (d x)^{n-1} \text{li}\left (c x^n\right )}{c n}-\frac{(d x)^n}{d n \log \left (c x^n\right )} \]

Antiderivative was successfully verified.

[In]

Int[(d*x)^(-1 + n)/Log[c*x^n]^2,x]

[Out]

-((d*x)^n/(d*n*Log[c*x^n])) + (x^(1 - n)*(d*x)^(-1 + n)*LogIntegral[c*x^n])/(c*n)

Rule 2306

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log
[c*x^n])^(p + 1))/(b*d*n*(p + 1)), x] - Dist[(m + 1)/(b*n*(p + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p + 1), x]
, x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1] && LtQ[p, -1]

Rule 2308

Int[((d_)*(x_))^(m_.)/Log[(c_.)*(x_)^(n_)], x_Symbol] :> Dist[(d*x)^m/x^m, Int[x^m/Log[c*x^n], x], x] /; FreeQ
[{c, d, m, n}, x] && EqQ[m, n - 1]

Rule 2307

Int[(x_)^(m_.)/Log[(c_.)*(x_)^(n_)], x_Symbol] :> Dist[1/n, Subst[Int[1/Log[c*x], x], x, x^n], x] /; FreeQ[{c,
 m, n}, x] && EqQ[m, n - 1]

Rule 2298

Int[Log[(c_.)*(x_)]^(-1), x_Symbol] :> Simp[LogIntegral[c*x]/c, x] /; FreeQ[c, x]

Rubi steps

\begin{align*} \int \frac{(d x)^{-1+n}}{\log ^2\left (c x^n\right )} \, dx &=-\frac{(d x)^n}{d n \log \left (c x^n\right )}+\int \frac{(d x)^{-1+n}}{\log \left (c x^n\right )} \, dx\\ &=-\frac{(d x)^n}{d n \log \left (c x^n\right )}+\left (x^{1-n} (d x)^{-1+n}\right ) \int \frac{x^{-1+n}}{\log \left (c x^n\right )} \, dx\\ &=-\frac{(d x)^n}{d n \log \left (c x^n\right )}+\frac{\left (x^{1-n} (d x)^{-1+n}\right ) \operatorname{Subst}\left (\int \frac{1}{\log (c x)} \, dx,x,x^n\right )}{n}\\ &=-\frac{(d x)^n}{d n \log \left (c x^n\right )}+\frac{x^{1-n} (d x)^{-1+n} \text{li}\left (c x^n\right )}{c n}\\ \end{align*}

Mathematica [A]  time = 0.0172861, size = 49, normalized size = 1. \[ \frac{x^{1-n} (d x)^{n-1} \text{li}\left (c x^n\right )}{c n}-\frac{x (d x)^{n-1}}{n \log \left (c x^n\right )} \]

Antiderivative was successfully verified.

[In]

Integrate[(d*x)^(-1 + n)/Log[c*x^n]^2,x]

[Out]

-((x*(d*x)^(-1 + n))/(n*Log[c*x^n])) + (x^(1 - n)*(d*x)^(-1 + n)*LogIntegral[c*x^n])/(c*n)

________________________________________________________________________________________

Maple [F]  time = 1.202, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( dx \right ) ^{-1+n}}{ \left ( \ln \left ( c{x}^{n} \right ) \right ) ^{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x)^(-1+n)/ln(c*x^n)^2,x)

[Out]

int((d*x)^(-1+n)/ln(c*x^n)^2,x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} d^{n} \int \frac{x^{n}}{d x \log \left (c\right ) + d x \log \left (x^{n}\right )}\,{d x} - \frac{d^{n} x^{n}}{d n \log \left (c\right ) + d n \log \left (x^{n}\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x)^(-1+n)/log(c*x^n)^2,x, algorithm="maxima")

[Out]

d^n*integrate(x^n/(d*x*log(c) + d*x*log(x^n)), x) - d^n*x^n/(d*n*log(c) + d*n*log(x^n))

________________________________________________________________________________________

Fricas [A]  time = 1.00616, size = 132, normalized size = 2.69 \begin{align*} -\frac{d^{n - 1} x^{n} - \frac{{\left (n \log \left (x\right ) + \log \left (c\right )\right )} d^{n - 1}{\rm Ei}\left (n \log \left (x\right ) + \log \left (c\right )\right )}{c}}{n^{2} \log \left (x\right ) + n \log \left (c\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x)^(-1+n)/log(c*x^n)^2,x, algorithm="fricas")

[Out]

-(d^(n - 1)*x^n - (n*log(x) + log(c))*d^(n - 1)*Ei(n*log(x) + log(c))/c)/(n^2*log(x) + n*log(c))

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (d x\right )^{n - 1}}{\log{\left (c x^{n} \right )}^{2}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x)**(-1+n)/ln(c*x**n)**2,x)

[Out]

Integral((d*x)**(n - 1)/log(c*x**n)**2, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (d x\right )^{n - 1}}{\log \left (c x^{n}\right )^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x)^(-1+n)/log(c*x^n)^2,x, algorithm="giac")

[Out]

integrate((d*x)^(n - 1)/log(c*x^n)^2, x)